package com.summba.main.test;

import java.io.File;

import junit.framework.TestCase;

import org.junit.Test;

import com.summba.analysis.CheckClassFeature;
import com.summba.analysis.GatherAllFavourite;
import com.summba.analysis.StatisticsAdsUrlClass;
import com.summba.analysis.StatisticsCFCrawlCount;
import com.summba.corpus.extractor.KeywordExtractor;





public class SingleTestCase {
	
	@Test 
	public void testStatistiscAdsUrl() throws Exception{
		StatisticsAdsUrlClass obj = new StatisticsAdsUrlClass();
	}
	
	@Test
	public void testStatisticsCFCrawlCount() throws Exception{
		StatisticsCFCrawlCount obj = new StatisticsCFCrawlCount();
	}
	
	@Test
	public void testGatherAllFavourite() throws Exception{
		GatherAllFavourite obj = new GatherAllFavourite(
				"D:\\work\\summba.src\\weibo_analysiscorpus" +
				"\\result\\imp_live_favourite.csv");
	}
	
	@Test 
	public void TestCheckClassFeature(){
		String cfFile = System.getProperty("user.dir") +
			File.separatorChar + "conf" +
			File.separatorChar + "csmt_class_feature.txt";
		
		String wFile = System.getProperty("user.dir") +
			File.separatorChar + "conf" +
			File.separatorChar + "csmt_class_feature_temp.txt";
		
		CheckClassFeature obj = new CheckClassFeature(cfFile,wFile);
		System.out.println("Test!!!!");
		obj.showSet();
	}
	
	@Test
	public void TestKeywordExtractor() throws Exception{
		KeywordExtractor obj = new KeywordExtractor(
				"D:\\work\\summba.doc\\weibo\\temp\\2011-12-13\\2011-12-13\\2011-12-13-0.txt",
				".\\result\\keyword.sdb");
		obj.getTextContent("乳霜");
	}
	

}
